package com.fqxl.labour.controller;

import com.fqxl.labour.service.AnnouncementService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName: AnnouncementController
 * @Description:
 * @Author: Awen
 * @Date: 2023/5/17 13:51
 */
@RequestMapping("/announcement")
@RestController
@Api(tags = "平台公告")
public class AnnouncementController {

    @Autowired
    private AnnouncementService announcementService;

    /**
     * 获取平台公告
     * @return
     */
    @GetMapping("/getAnnouncement")
    public R getAnnouncement(){
        return announcementService.getAnnouncement();
    }

}
